<?php

$mypos = simplexml_load_file("pos.xml");
$latitude = $mypos->{'Latitude'};
$latitude = str_replace(",",".",$latitude);
$longtitude = $mypos->{"Longtitude"};
$longtitude = str_replace(",",".",$longtitude);
$deviceID = $mypos->{'DeviceID'};
$deviceID = str_replace(",",".",$deviceID);
$pos = array($latitude,$longtitude,$deviceID);
print json_encode($pos);

?>
